﻿<UserControl x:Class="CompanyInfoControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:extToolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit/extended" 
             xmlns:wpfspark="clr-namespace:WPFSpark;assembly=WPFSpark">
    <UserControl.Resources>
        <LinearGradientBrush x:Key="CheckedStateBrush"
                             EndPoint="0,1"
                             StartPoint="0,0">
            <GradientStop Color="#1E41A5"
                          Offset="0" />
            <GradientStop Color="#2F6AEA"
                          Offset="0.5" />
            <GradientStop Color="#6298FE"
                          Offset="1" />
        </LinearGradientBrush>
        <LinearGradientBrush x:Key="UncheckedStateBrush"
                             EndPoint="0,1"
                             StartPoint="0,0">
            <GradientStop Color="#FF81230E" />
            <GradientStop Color="#FFF15910"
                          Offset="0.365" />
            <GradientStop Color="#FFF5A782"
                          Offset="1" />
        </LinearGradientBrush>
    </UserControl.Resources>
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="120"/>
            <ColumnDefinition Width="320"/>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="28"/>
            <RowDefinition Height="50"/>
            <RowDefinition Height="28"/>
            <RowDefinition Height="28"/>
            <RowDefinition Height="28"/>
            <RowDefinition Height="28"/>
            <RowDefinition Height="110"/>
            <RowDefinition Height="35"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <TextBlock Text="Name:" Style="{StaticResource TextBlockStyle}"/>
        <extToolkit:WatermarkTextBox Grid.Column="1" Watermark="Company name" Name="NameTextBox" Margin="2"/>
        <TextBlock Text="Address:" Grid.Row="1" Style="{StaticResource TextBlockStyle}"/>
        <extToolkit:WatermarkTextBox Grid.Column="1" Watermark="Address" Grid.Row="1" Name="AddressTextBox" Margin="2" AcceptsReturn="True" TextWrapping="Wrap"/>
        <TextBlock Text="Description:" Grid.Row="2" Style="{StaticResource TextBlockStyle}"/>
        <extToolkit:WatermarkTextBox Grid.Column="1" Watermark="Description." Grid.Row="2" Name="DescriptionTextBox" Margin="2"/>
        <TextBlock Text="Tel. No.:" Grid.Row="3" Style="{StaticResource TextBlockStyle}"/>
        <extToolkit:WatermarkTextBox Grid.Column="1" Watermark="Telephone no." Grid.Row="3" Name="TelNo1TextBox" Margin="2"/>
        <TextBlock Text="VAT No.:" Grid.Row="4" Style="{StaticResource TextBlockStyle}"/>
        <extToolkit:WatermarkTextBox Watermark="VAT No." Grid.Column="1"  Grid.Row="4" Name="VATNoTextBox" Margin="2"/>
        <TextBlock Text="CST No.:" Grid.Row="5" Style="{StaticResource TextBlockStyle}"/>
        <extToolkit:WatermarkTextBox Watermark="CST No" Grid.Column="1"  Grid.Row="5" Name="CSTNoTextBox" Margin="2"/>
        <TextBlock Text="Invoice Terms:" Grid.Row="6" Style="{StaticResource TextBlockStyle}"/>
        <extToolkit:WatermarkTextBox Watermark="Invoice terms" Grid.Column="1" Grid.Row="6" Name="InvoiceTermTextBox" Margin="2" AcceptsReturn="True" TextWrapping="Wrap"/>
        <StackPanel Grid.Row="7" Grid.Column="1"  Orientation="Horizontal">
            <TextBlock Text="Generate Item no automatically " Grid.Row="6" Margin="10"/>
            <wpfspark:ToggleSwitch Name="ItemNoToggleSwitch" Background="Black" ThumbWidth="25" BorderThickness="2" CheckedForeground="White"
                               CheckedText="Yes" CornerRadius="15" FontFamily="Tahoma" FontSize="18" FontWeight="Normal" Height="25" HorizontalAlignment="Left"
                               Margin="5" Padding="0" ThumbBorderThickness="2" ThumbCornerRadius="21" ThumbGlowColor="Gray" ThumbShineCornerRadius="20,20,0,0"
                               UncheckedForeground="Black" UncheckedText="No" VerticalAlignment="Top" Width="88" UncheckedBackground="{StaticResource UncheckedStateBrush}"
                               IsCheckedLeft="False" CheckedToolTip="" UncheckedToolTip="No">
                <wpfspark:ToggleSwitch.BorderBrush>
                    <LinearGradientBrush EndPoint="0,0" StartPoint="0,1">
                        <GradientStop Color="#959595" Offset="0" />
                        <GradientStop Color="#A1A1A1" Offset="0.5" />
                        <GradientStop Color="#555555" Offset="1" />
                    </LinearGradientBrush>
                </wpfspark:ToggleSwitch.BorderBrush>
                <wpfspark:ToggleSwitch.CheckedBackground>
                    <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
                        <GradientStop Color="#1E41A5" Offset="0" />
                        <GradientStop Color="#2F6AEA" Offset="0.5" />
                        <GradientStop Color="#6298FE" Offset="1" />
                    </LinearGradientBrush>
                </wpfspark:ToggleSwitch.CheckedBackground>
                <wpfspark:ToggleSwitch.ThumbBackground>
                    <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
                        <GradientStop Color="#C1C1C1" Offset="0" />
                        <GradientStop Color="#A5A5A5" Offset="0.5" />
                        <GradientStop Color="#FCFCF6" Offset="1" />
                    </LinearGradientBrush>
                </wpfspark:ToggleSwitch.ThumbBackground>
                <wpfspark:ToggleSwitch.ThumbBorderBrush>
                    <LinearGradientBrush EndPoint="0,1" StartPoint="0,0">
                        <GradientStop Color="#F6F6F6" Offset="0" />
                        <GradientStop Color="#959595" Offset="0.5" />
                        <GradientStop Color="#565656" Offset="1" />
                    </LinearGradientBrush>
                </wpfspark:ToggleSwitch.ThumbBorderBrush>
            </wpfspark:ToggleSwitch>
        </StackPanel>
        <Grid Grid.Row="8" Grid.ColumnSpan="2" Margin="5" Visibility="Collapsed">
            <Grid.RowDefinitions>
                <RowDefinition Height="28"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="80"/>
                <ColumnDefinition Width="80"/>
                <ColumnDefinition Width="80"/>
                <ColumnDefinition Width="70"/>
                <ColumnDefinition/>
                <ColumnDefinition Width="80"/>
            </Grid.ColumnDefinitions>
            <TextBlock Text="Sales Bill Prefix :" Style="{StaticResource TextBlockStyle}"/>
            <extToolkit:WatermarkTextBox Watermark="Bill Prefix" Grid.Column="1"  Name="SalesBillPrefixTextBox" Margin="2"/>
            <TextBlock Text="Current No :" Grid.Column="2" Style="{StaticResource TextBlockStyle}"/>
            <extToolkit:WatermarkTextBox Watermark="Current No" Grid.Column="3" Name="SalesCurrentNoTextBox" Margin="2"/>
            <TextBlock Text="Sufix :" Grid.Column="4" Style="{StaticResource TextBlockStyle}"/>
            <extToolkit:WatermarkTextBox Watermark="Sufix" Grid.Column="5" Name="SalesSufixTextBox" Margin="2"/>
            <!--<TextBlock Text="PO Prefix :" Grid.Row="1" Style="{StaticResource TextBlockStyle}"/>
            <extToolkit:WatermarkTextBox Watermark="PO Prefix" Grid.Column="1"  Grid.Row="1" Name="POPrefixTextBox" Margin="2"/>
            <TextBlock Text="Current No :" Grid.Column="2" Grid.Row="1" Style="{StaticResource TextBlockStyle}"/>
            <extToolkit:WatermarkTextBox Watermark="Current No" Grid.Column="3"  Grid.Row="1" Name="POCurrentNoTextBox" Margin="2"/>
            <TextBlock Text="Sufix :" Grid.Column="4" Grid.Row="1" Style="{StaticResource TextBlockStyle}"/>
            <extToolkit:WatermarkTextBox Watermark="Sufix" Grid.Column="5" Grid.Row="1" Name="POSufixTextBox" Margin="2"/>-->
        </Grid>
    </Grid>
</UserControl>
